import React,{Component} from 'react';
import {
    StyleSheet,
    View,
    Text,
    StatusBar,
    Image,
    TouchableWithoutFeedback,
    PixelRatio,
    Dimensions,
} from 'react-native';
import request from '../request/request';
import Header from './header/Header';
import Toast from 'react-native-root-toast';
import {ScreenWidth, ScreenHeight} from './screenConfig/ScreenConfig'
export default class AboutUs extends Component{
    constructor(props) {
        super(props);
        // 初始状态
        this.state = {
            mask: false,
            visible: false
        };
    }

    componentDidMount(){
        // 小米6的屏幕宽高和浏览器Galaxy S5一样是360*640
        var {width, height} = Dimensions.get('window');
        var size = PixelRatio.getPixelSizeForLayoutSize(200);
        console.log('屏幕宽高：' + width+ ',' +height);
        console.log('屏幕像素密度：' + PixelRatio.get())

        console.log( ScreenWidth(325) )
        console.log( ScreenHeight(325) )
    }

    render(){
        const { params } = this.props.navigation.state;
        const {navigate,goBack,state} = this.props.navigation;
        let barHeight = StatusBar.currentHeight;
        return (
            <View style={{
                flex: 1,
                // paddingTop: barHeight, 
                backgroundColor: '#eaeaea'
            }}>
                <Header isShowBack={true} title='关于我们' goBack={goBack} />

                <Image style={{width: '100%', height: 562}} source={require('../images/about-us.png')}/>
            </View>
        )
    }
}

const styles = StyleSheet.create({

})